package com.zhzh.StudySpringBoot.util;

/**
 *
 *
 * @author zhangzhen
 * @version C10 2018年09月05日 
 * @since SDP V300R003C10
 */
public class Test {
    public static void main(String[] args) {
        Zi zi = new Zi();
        zi.doSomething();
    }
}
class Fu{
    public synchronized void doSomething(){
        System.out.println("aaa");
    }
}
class Zi extends Fu{
    public synchronized void doSomething(){
        System.out.println("bbb");
        super.doSomething(); // 如果内置锁是不可重入的，则发生死锁
    }
}
